package com.dly.hope.repository;

import com.dly.hope.modle.Group;
import com.dly.hope.workflow.NodeInfo;
import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface GroupRepository extends JpaRepository<Group, String> {

    List<Group> findAllByIdInAndDataStatus(List<String> groupIds, Integer dateStatus);

    Optional<Group> findByIdAndDataStatus(String acceptId, Integer dateStatus);

    List<Group> findAllByGroupMasterAndDataStatus(String masterId, Integer dateStatus);

    Optional<Group> findByGroupNumberAndDataStatus(String groupNumber, Integer dateStatus);

}
